< previous page page_311 next page >

Page 311
When you pass the mouse over the control or click any object on the control, the bottom work area will display the event(s) that is triggered in the appropriate order and display the data being set.
Note
In order to use this tool, you must compile the new ActiveX control into an OCX and register it.

Converting a Form to a Control
Now that you have an understanding of ActiveX control creation, look at what it takes to convert an existing form into an ActiveX control and why would you want to do it. The only time it makes sense to put the effort into converting a form is when you need to have a form's capabilities within another form's control. If you go back to the Address Book application that uses the Explorer interface, you would see that the data-entry and data-list forms need to be treated as controls in the Explorer SDI so that they can be hidden and resized as one of the panes (see Figure 11.15).
12181-0311a.gif
Figure 11.15.
Controlling the data list form as a control within the Explorer interface.
If these were treated as forms, users could keep the forms open or minimized even when they aren't needed. The other option would be to display them as modal forms. In this application design, you want them as controls. To understand the process, convert the

 
< previous page page_311 next page >

If you like this book, buy it!